<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->title;?></title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/main.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
</head>

<body>
	<div id="main">
		<div id="topMenu">
			<div id="navigation">当前位置：<span id="focus">选择产品</span></div>
			<div id="topOtherMenu">
				<input type="button" name="insert" id="insert" value="批量设置产品菜单" class="button" onclick="location.href='<?php echo $this->projectUrl(array('action'=>'batch-set'));?>';" />
			</div>
		</div>
		<div id="body">
			<div id="search">
				<form id="searchForm" name="searchForm" method="post" action="<?php echo $this->projectUrl();?>">
					<table width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td>
								商家名称：							
								<input type="text" id="partnerName" name="partnerName" value="<?php echo $this->vars['partnerName']; ?>" class="input" />
								&nbsp;&nbsp;
								产品编号：
								<input type="text" id="code" name="code" value="<?php echo $this->vars['code']; ?>" class="input">
								&nbsp;&nbsp;
								商家名称：							
								<input type="text" id="name" name="name" value="<?php echo $this->vars['name']; ?>" class="input" />
								<input type="submit" name="button" id="button" value="查找" class="button" />
							</td>
						</tr>
					</table>
				</form>
			</div>
			<div id="content">
				<form id="listForm" name="listForm" method="post" action="">
					<table class="table">
						<tr class="subject">
							<td>商家名称</td>
							<td>产品编号</td>
							<td>产品名称</td>
							<td width="10%" class="checkBoxTd">操作</td>
						</tr>
<?php
foreach($this->rows as $row) {
?>
						<tr>
							<td><?php echo $row['partnerName'];?></td>
							<td><?php echo $row['code'];?></td>
							<td><?php echo $row['name'];?></td>
							<td width="10%" class="checkBoxTd"><a href="<?php echo $this->projectUrl(array('action'=>'menu', 'productCode'=>$row['code']));?>">管理菜单</a></td>
						</tr>
<?php
}
?>
					</table>
					<table class="controlTable">
						<tr>
							<td align="left">&nbsp;</td>
							<td align="right"><?php echo $this->pageString;?></td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
</body>
</html>